rewrite (something) to enhance (something)

Translations
réécrire (quelque chose) pour améliorer (quelque chose)